/**
 * VYPe11 Project
 * VYPe11 language compiler.
 * Authors: Jozef Lang (xlangj01), 
 * 			Zoltan Zemko (xzemko01)
 * 2011
 */
package cz.vutbr.fit.VYPe.team18.VYPe11.nodes.statement;

import java.io.IOException;

public class BreakStatementNode extends StatementNode {

	@Override
	public void generateTAC() throws IOException {
		if(tacCounter.getWhileLabelStack().empty())
			writeTAC("goto", "","", "L"+tacCounter.getWhileLabelStack().peek()+"_end");		
	}

}
